package com.weipeep.sys.dao;

import com.weipeep.sys.domain.ProductDO;
import com.weipeep.common.base.BaseDao;
import com.weipeep.sys.vo.ProductResponse;
import com.weipeep.sys.vo.ProductSearch;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2018-04-20 22:55:14 | wangyun</small>
 */
public interface ProductDao extends BaseDao<ProductDO> {

    List<ProductResponse> fetchLatestProducts(Map<String, Object> map);
    List<ProductResponse> fetchOnePersonLatestProducts(Map<String, Object> map);

    List<ProductResponse> selectProductListByPage(ProductSearch productSearch);

    int selectProductCountByPage(ProductSearch productSearch);

    void refresh(Map<String,Object> map);

    List<ProductResponse> fetchOwnLatestProducts(Map<String,Object> map);

    List<Long> fetchLatestProductUsers(Map<String,Object> map);
}
